import request from "@/utils/request";
// 员工
export function personnel(params) {
  return request({
    baseURL: window.APP_GETEWAY.auth,
    url: "/tenant/organization",
    method: "get",
    params,
  }).then((res) => res.data);
}

// 部门
export function department(params) {
  return request({
    baseURL: window.APP_GETEWAY.auth,
    url: "/department",
    method: "get",
    params,
  }).then((res) => res.data);
}
// 获取分类列表
export function classify(params) {
  return request({
    baseURL: window.APP_GETEWAY.goods,
    url: "/base/backend-classification/get-list",
    method: "get",
    params,
  }).then((res) => res.data);
}

//获取飞书应用配置
export function getFeishuConfig() {
  return request({
    baseURL: window.APP_GETEWAY.auth,
    url: '/feishu-authorize/get-feishu-authorize',
    method: 'get',
  })
}
